package com.group11.job.vo;

import com.group11.common.pojo.Enterprise;
import com.group11.common.vo.EnterpriseVo;
import com.group11.job.domain.Job;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class JobVo {

    private int id;
    private int entId;
    private String name;
    private String industry;
    private String description;
    private int minWage;
    private int maxWage;
    private int num;
    private String welfare;
    private String pubTime;
    private String refreshTime;
    private int viewNum;
    private int favorNum;
    private int deliveNum;
    private String status;
    private String isDeleted;
    private EnterpriseVo enterprise;

    public JobVo(Job job, EnterpriseVo enterprise) {
        this.id = job.getId();
        this.entId = job.getEntId();
        this.name = job.getName();
        this.industry = job.getIndustry();
        this.description = job.getDescription();
        this.minWage = job.getMinWage();
        this.maxWage = job.getMaxWage();
        this.num = job.getNum();
        this.welfare = job.getWelfare();
        this.pubTime = job.getPubTime();
        this.refreshTime = job.getRefreshTime();
        this.viewNum = job.getViewNum();
        this.favorNum = job.getFavorNum();
        this.deliveNum = job.getDeliveNum();
        this.status = job.getStatus();
        this.isDeleted = job.getIsDeleted();
        this.enterprise = enterprise;
    }

}
